package com.liaowei.post.openfeign;

import com.liaowei.common.BaseResponse;
import com.liaowei.post.config.OpenFeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "comment-service", configuration = OpenFeignConfig.class)
public interface PostCommentClient {
    // 删除文章评论
    @DeleteMapping("/comments/posts/{postId}/{userId}")
    BaseResponse<String> deleteComment(@PathVariable("postId") Long postId, @PathVariable("userId") Long userId);
}
